﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 猜拳
{
    abstract class BattleInfo
    {
        private string _name;
        private int _throwPunch;
        private string _throwPunchChinese;

        public BattleInfo(string name)
        {
            Name = name;

        }

        public string Name { get => _name; set => _name = value; }
        public int ThrowPunch { get => _throwPunch; set => _throwPunch = value; }
        public string ThrowPunchChinese { get => _throwPunchChinese; set => _throwPunchChinese = value; }

        //出拳的信息
         public virtual string Rule()
        {
            return $"{Name}:出拳：{ThrowPunchChinese}";
        }
        
    }
}
